package com.lecture.junit.tdd.example;

import java.util.Date;
import java.util.Set;

public interface IAccount {

    boolean passwordMatches(String password);

    void setLoggedIn(boolean loggedIn);

    void setRevoked(boolean revoked);

    boolean isRevoked();

    String getUserName();
    
    Date lastDatePasswordChanged();

	void changePassword(String newPassword) throws PasswordException;
	
	Set<String> lastPasswords();
	
	void setLastTouch(Date date);
	
	Date getLastTouch();

}
